package com.ruoyi.bookstore.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 书对象 books
 * 
 * @author ruoyi
 * @date 2022-07-20
 */
public class Books extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 存放的图书馆编号 */
    @Excel(name = "存放的图书馆编号")
    private Long libraryId;

    /** 分类编号 */
    @Excel(name = "分类编号")
    private Long sortId;

    /** 存放位置 */
    @Excel(name = "存放位置")
    private String position;

    /** 是否借出（0借出，未借出） */
    @Excel(name = "是否借出", readConverterExp = "0=借出，未借出")
    private Long status;

    /** 书籍描述 */
    @Excel(name = "书籍描述")
    private String description;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setLibraryId(Long libraryId) 
    {
        this.libraryId = libraryId;
    }

    public Long getLibraryId() 
    {
        return libraryId;
    }
    public void setSortId(Long sortId) 
    {
        this.sortId = sortId;
    }

    public Long getSortId() 
    {
        return sortId;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("author", getAuthor())
            .append("libraryId", getLibraryId())
            .append("sortId", getSortId())
            .append("position", getPosition())
            .append("status", getStatus())
            .append("description", getDescription())
            .toString();
    }
}
